package Exam;

import java.sql.*;

public class Shujulj {
		public static Connection getConnection()throws Exception{
			Class.forName("com.mysql.jdbc.Driver");
			Connection con=DriverManager.getConnection("jdbc:mysql://localhost/df?Unicode=true&CharacterEncoding=UTF-8","root","root");
			return con;
		}
		public static void closegetConnection(Connection con)throws Exception{
			if (con != null) {
				con.close();
				
			}
			
		}
}
